package org.zcl.字符操作与数据计算.字节长度;

/**
 * @Package org.zcl.字符操作与数据计算.字节长度
 * @PROJECT_NAME: question
 * @DESCRIPTION: 截取字符串[0,2)
 * @USER: zhuchenglin
 * @DATE: 2021/12/9 9:28
 */
public class SubString {
    public static void main(String[] args) {
        String s = "Hello";
        System.out.println(s.substring(0, 2));
        System.out.println(s.substring(2));
    }
}
